"""blog URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path

from ArticleManage import views
app_name = 'ArticleManage'
urlpatterns = [
    #文章删除
    path('delete/<int:aid>/<int:cid>/<int:page>/', views.delete_article, name='delete'),
    #文章发布
    path('publish/<int:cid>/',views.publish_article, name='publish'),
    #文章内容展示
    path('display/<int:aid>',views.display,name='display'),
    #文章翻译
    path('translate/',views.translate,name='translate'),
    #文章修改
    path('update/<int:aid>/<int:cid>/',views.update_article, name='update'),
    #文章修改跳转
    path('change_update/<int:aid>/<int:cid>/',views.change_updata,name='change_update'),
    #用户删除
    path('user_delete/<int:id>',views.user_delete,name='user_delete'),
    #文章类型删除
    path('artiType_delete/<int:cid>',views.artiType_delete,name='artiType_delete'),
    #文章类型修改
    path('artiType_modify/<int:cid>',views.artiType_modify,name='artiType_modify'),
    #文章类型添加
    path('artiType_addArticle/',views.artiType_addArticle,name='artiType_addArticle'),
    #图片识别
    path('identify/',views.identify,name='identify'),

    #文章爬取
    path('download_type/',views.download,name='download'),
]
